<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script type="text/javascript">
        var a = new Array(5);                                     
        var b = new Array('王晓冬 ',20,'学生','武汉');             
        var c = ['丁大春 ',21,'学生','广州'];
        a[0] = "李春艳";                   
        a[1] = 20;                        
        a[2] = "学生";                    
        document.write("a数组各元素的值是："+a+"<br>"); 
        document.write("a数组各元素的值是："+a[0]+","+a[1]+","+a[2]+","+a[3]+","+a[4]+"<br>"); 
        document.write("a数组的长度是："+a.length+"<br>"); 
        document.write("b数组各元素的值是："+b+"<br>"); 
        document.write("b数组各元素的值是："+b[0]+","+b[1]+","+b[2]+","+b[3]+","+b[4]+"<br>"); 
        document.write("b数组的长度是："+b.length+"<br>"); 
        document.write("c数组各元素的值是："+c+"<br>"); 
        document.write("c数组各元素的值是："+c[0]+","+c[1]+","+c[2]+","+c[3]+","+c[4]+"<br>");
        document.write("c数组的长度是："+c.length+"<br>"); 
        document.write(a.join("|")+"<br>"); 
        document.write("连接操作后a数组各元素的值是："+a+"<br>");   
        document.write(b.push('计算机',90)+"<br>");  
        document.write("压入操作后b数组各元素的值是："+b+"<br>");        
        document.write(b.pop()+"<br>"); 
        document.write("弹出操作后b数组各元素的值是："+b+"<br>");   
        document.write(b.shift()+"<br>");  
        document.write("shift操作后b数组各元素的值是："+b+"<br>");
        document.write(b.unshift('王华')+"<br>");    
        document.write("unshift操作后b数组各元素的值是："+b+"<br>");   
        document.write(c.reverse()+"<br>");   
        //李春艳,20,学生,,
        //李春艳,20,学生,undefined,undefined
        //5
        //王晓冬,20,学生,武汉
        //王晓冬,20,学生,武汉,undefined
        //4
        //丁大春,21,学生,广州
        //丁大春,21,学生,广州,undefined
        //4
        //李春艳|20|学生||
        //李春艳,20,学生,,
        //6
        //王晓冬,20,学生,武汉,计算机,90
        //90
        //王晓冬,20,学生,武汉,计算机
        //王晓冬
        //20,学生,武汉,
        //5
        //王华,20,学生,武汉,计算机
        //广州,学生,21,丁大春
    </script> 
</body>
</html>